
/*
 * @Description 文件上传配置
 * @Created 2017/7/10 15:30
 */

var multer = require('multer');


var storage = multer.diskStorage({
    destination: process.cwd() + '/public/images',
    filename: function (req, file, cb) {
        cb(null, file.originalname);
    }
});


module.exports = multer({
    storage: storage
})
